import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Bind from '@/pages/Bind'
import DeptList from '@/pages/DeptList'
import UserList from '@/pages/UserList'

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'HelloWorld',
    //   component: HelloWorld
    // },
    {
      path: '/',
      name: 'Bind',
      component: Bind
    },
    {
      path: '/deptlist',
      name: 'DeptList',
      component: DeptList
    },
    {
      path: '/userlist/:deptId',
      name: 'UserList',
      component: UserList
    }
  ]
})
